import type { advanceapplylistDto } from './type'
import request from '@/api/request'

// 获取当前所属劳务公司，及该劳务公司下开通预支的企业
export function getuserapplyconfigapi() {
    return request.get('/api/v1/blue/advance/apply/user-apply-config')
}

// 提交预支申请
export function postadvanceapplyapi(data: {
    companyId: number | string
    companyName: string
    serveCompanyId: string | number
    advanceAmount: string | number
    applyRemark: string
    files?: string | string[]
}) {
    return request.post('/api/v1/blue/advance/apply', data)
}

// 员工预支记录列表
export function getadvanceapplylistapi(data: {
    idCardNo: string
    queryMonth: string
    pageSize: number
    pageNum: number
}): Promise<advanceapplylistDto> {
    return request.get('/api/v1/blue/advance/apply/advance-apply-list', data)
}
